package com.djq.hhc.feign;

import com.djq.hhc.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Set;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: dadd7
 * @Date: 2023/03/15/下午 9:47
 * @Description:
 */
@FeignClient(value = "service-user")
public interface UserInfoFeignClient {

    //跟据Set<String>获取对应的List<UserDto>
    @GetMapping("/user/userInfo/getDtosBySet")
    public Result getDtosBySet(@RequestHeader("Authorization") String token, @RequestParam("tops") Set<String> top5);
}
